home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
UTILSTEM
/
HACKROM.LZH
/
HDAT.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-05-13
|
2KB
|
47 lines
10 PRINT "Which Roms do you have:"
20 PRINT "(1) Phoenix AT (2)Taiwanese AT (3)IBM AT (4) PHOENIX 386"
30 INPUT "Enter Choice: ",RT%
40 IF RT%=0 THEN 30
50 IF RT% = 1 THEN LO = 58881!: REM all others start at $E501
60 LO = 58625!:
70 PRINT:PRINT
80 PRINT "Which Drive Type would you want it to be =1..14,16-47"
90 INPUT "Drive type 1..14,16-23 already defined by IBM. Enter Type:",T%
100 IF (T%=15) OR (T%>47) OR (T% <1) GOTO 70
110 ZZ = LO+16*(T%-1)
120 LO$=HEX$(ZZ)
130 INPUT "Number of Cylinders:",C$
140 INPUT "Number of Heads:",H$
150 INPUT "Write Precomp Cylinder * for NONE:",W$
160 INPUT "Landing Zone:",L$
170 INPUT "Number of Sectors per track:(17):",S$
180 IF S$="" THEN S$="17"
190 C%=VAL(C$):H%=VAL(H$):L%=VAL(L$):S%=VAL(S$)
200 IF INSTR(W$,"*") =0 THEN W=VAL(W$) ELSE W=65535!
210 PRINT HEX$(C%),HEX$(H%),HEX$(W),HEX$(L%),HEX$(S%)
220 OPEN "drv.dbg" FOR OUTPUT AS #1
230 PRINT #1,"EW "+LO$"+0 "+HEX$(C%)
240 PRINT #1,"Eb "+LO$"+2 "+HEX$(H%)
250 PRINT #1,"EW "+LO$"+5 "+HEX$(W)
260 PRINT #1,"EW "+LO$"+c "+HEX$(L%)
270 PRINT #1,"Eb "+LO$"+e "+HEX$(S%)
280 PRINT #1,"W"
290 PRINT #1,"Q"
300 CLOSE #1
301 PRINT:PRINT"Type the commands that are in UPPERCASE in DOS,COPY THEM DOWN"
310 IF RT% <3 THEN PRINT "A>2CHIP"
320 IF RT% >=3 THEN PRINT"A>ROMSAVAT"
330 PRINT"A>SYMDEB ATROM <DRV.DBG"
340 PRINT"A>CHKSUM ATROM TEMP"
350 PRINT"A>ROMSPLIT"
360 IF RT% >=3 THEN PRINT"If you are using 27256 eproms stop here and burn tempevn & tempodd"
370 IF RT% <3 THEN PRINT"You Can now burn in TEMPEVN and TEMPODD into 27128s"
371 IF RT% <3 THEN INPUT "Do you have a BABY AT:",A$:IF A$="y" THEN PRINT "A>2ROMS":GOTO 500
380 PRINT:PRINT"The next part is only for those with 27128 eproms"
390 PRINT"A>LSPLIT 16384 tempevn"
400 PRINT"rename f0 ef0, rename f1 ef1"
410 PRINT"A>LSPLIT 16384 tempodd"
420 PRINT"rename f0 of0, rename f1 of1"
430 PRINT"You Can now burn The files EF0 EF1 OF0 OF1 into 4 eproms"
500 SYSTEM